
<% provide(:title, 'Sign up') %>
<h1>Sign up</h1>

<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(@user, url: signup_path ) do |f| %>
        <%= render 'shared/error_messages' %>

        <%= f.label :number, "工号" %>
        <%= f.text_field :number, class: 'form-control' %>
  
        <%= f.label :name, "姓名" %>
        <%= f.text_field :name, class: 'form-control' %>
  
        <%= f.label :password, "密码" %>
        <%= f.password_field :password, class: 'form-control' %>
  
        <%= f.label :password_confirmation, "确认密码" %>
        <%= f.password_field :password_confirmation, class: 'form-control' %>

      <%= f.submit "Create my account", class: "btn btn-primary" %>
    <% end %>
    <p>Have an account? <%= link_to "Log in now!", login_path %></p>
  </div>
</div>

